solve any cubic